package com.hs.srm.admin.modules.sampletest.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.hs.srm.base.common.base.CloneableEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/*
 * 上传文件路径、备注、时间
 */
@Setter
@Getter
@TableName("upload_file_remark")
@ToString
public class UploadFileRemarkEntity implements Serializable, CloneableEntity<UploadFileRemarkEntity> {

    private static final long serialVersionUID = 1L;

    public UploadFileRemarkEntity() {
        super();
    }

    /*
     * ID
     */
    @TableId(value = "upload_id", type = IdType.UUID)
    @TableField("upload_id")
    @Excel(name = "ID", orderNum = "1")
    private String uploadId;

    /*
     * 行项目id
     */
    @TableField("po_item_id")
    @Excel(name = "行项目ID", orderNum = "2")
    private String poItemId;

    /*
     * 上传文件的备注
     */
    @TableField("remark")
    @Excel(name = "备注", orderNum = "2")
    private String remark;
    /*
     * 上传文件的类型
     */
    @TableField("file_type")
    @Excel(name = "类型", orderNum = "2")
    private String fileType;

    /*
     * 文件上传路径
     */
    @TableField("file_path")
    @Excel(name = "文件上传路径", orderNum = "2")
    private String filepath;

    @Override
    public UploadFileRemarkEntity clone() {
        try {
            return (UploadFileRemarkEntity) super.clone();
        } catch (CloneNotSupportedException ex) {
            // TODO Auto-generated catch block
            ex.printStackTrace();
        }
        return null;
    }
}
